<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">

	<title>IVQRCodeHelper Class Reference</title>

	<link rel="stylesheet" href="../css/style.css">
	<meta name="viewport" content="initial-scale=1, maximum-scale=1.4">
	<meta name="generator" content="appledoc 2.2.1 (build 1334)">
</head>
<body class="appledoc">
	<header>
		<div class="container" class="hide-in-xcode">
			
			<h1 id="library-title">
				<a href="../index.html">IoTVideo </a>
			</h1>

			<p id="developer-home">
				<a href="../index.html">tencentcs</a>
			</p>
			
		</div>
	</header>

	<aside>
		<div class="container">
			<nav>
				<ul id="header-buttons" role="toolbar">
					<li><a href="../index.html">Index</a></li>
<li><a href="../hierarchy.html">Hierarchy</a></li>

					<li id="on-this-page" role="navigation">
						<label>
							On This Page

							<div class="chevron">
								<div class="chevy chevron-left"></div>
								<div class="chevy chevron-right"></div>
							</div>

							<select id="jump-to">
	<option value="top">Jump To&#133;</option>
	

	
	
	<option value="tasks">Tasks</option>
	
	

	
	
	<optgroup label="Properties">
		
		<option value="//api/name/torchMode">torchMode</option>
		
	</optgroup>
	

	
	<optgroup label="Class Methods">
		
		<option value="//api/name/createQRCodeWithData:QRSize:">+ createQRCodeWithData:QRSize:</option>
		
		<option value="//api/name/createQRCodeWithString:QRSize:">+ createQRCodeWithString:QRSize:</option>
		
		<option value="//api/name/startScanWithPreView:cropRect:callback:">+ startScanWithPreView:cropRect:callback:</option>
		
	</optgroup>
	

	
	<optgroup label="Instance Methods">
		
		<option value="//api/name/detectQRCodeWithImage:">- detectQRCodeWithImage:</option>
		
		<option value="//api/name/initWithPreView:cropRect:callback:">- initWithPreView:cropRect:callback:</option>
		
		<option value="//api/name/startScan">- startScan</option>
		
		<option value="//api/name/stopScan">- stopScan</option>
		
	</optgroup>
	
	
</select>
						</label>
					</li>
				</ul>
			</nav>
		</div>
	</aside>

	<article>
		<div id="overview_contents" class="container">
			<div id="content">
				<main role="main">
					<h1 class="title">IVQRCodeHelper Class Reference</h1>

					
					<div class="section section-specification"><table cellspacing="0"><tbody>
						<tr>
	<th>Inherits from</th>
	<td>NSObject</td>
</tr><tr>
	<th>Declared in</th>
	<td>IVQRCodeHelper.h</td>
</tr>
						</tbody></table></div>
					

                    

					
					
					<div class="section section-tasks">
						<a title="Tasks" name="tasks"></a>
						

						
						

						<div class="task-list">
							<div class="section-method">
	<a name="//api/name/initWithPreView:cropRect:callback:" title="initWithPreView:cropRect:callback:"></a>
	<h3 class="method-title"><code><a href="#//api/name/initWithPreView:cropRect:callback:">&ndash;&nbsp;initWithPreView:cropRect:callback:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>初始化二维码扫码
需要手动调用startScan开启扫码</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (instancetype)initWithPreView:(UIView *)<em>preView</em> cropRect:(CGRect)<em>cropRect</em> callback:(IVQRCodeScanCallback)<em>callback</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>preView</code></th>
						<td><p>视频显示区域</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>cropRect</code></th>
						<td><p>识别区域，值为CGRectZero时全屏识别</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>callback</code></th>
						<td><p>识别完成回调</p></td>
					</tr>
				
				</table>
			</div>
			

			
			<div class="method-subsection return">
				<h4 class="method-subtitle parameter-title">Return Value</h4>
				<p>IVQRCodeHelper实例</p>
			</div>
			

			

			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">IVQRCodeHelper.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/startScanWithPreView:cropRect:callback:" title="startScanWithPreView:cropRect:callback:"></a>
	<h3 class="method-title"><code><a href="#//api/name/startScanWithPreView:cropRect:callback:">+&nbsp;startScanWithPreView:cropRect:callback:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>初始化并开启二维码扫码</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>+ (instancetype)startScanWithPreView:(UIView *)<em>preView</em> cropRect:(CGRect)<em>cropRect</em> callback:(IVQRCodeScanCallback)<em>callback</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>preView</code></th>
						<td><p>视频显示区域</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>cropRect</code></th>
						<td><p>识别区域，值为CGRectZero时全屏识别</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>callback</code></th>
						<td><p>识别完成回调</p></td>
					</tr>
				
				</table>
			</div>
			

			
			<div class="method-subsection return">
				<h4 class="method-subtitle parameter-title">Return Value</h4>
				<p>IVQRCodeHelper实例</p>
			</div>
			

			

			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">IVQRCodeHelper.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/torchMode" title="torchMode"></a>
	<h3 class="method-title"><code><a href="#//api/name/torchMode">&nbsp;&nbsp;torchMode</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>闪光灯模式</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>@property (nonatomic, assign) AVCaptureTorchMode torchMode</code></div>

		    
			

			

			

			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">IVQRCodeHelper.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/startScan" title="startScan"></a>
	<h3 class="method-title"><code><a href="#//api/name/startScan">&ndash;&nbsp;startScan</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>开始扫码</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (void)startScan</code></div>

		    
			

			

			

			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">IVQRCodeHelper.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/stopScan" title="stopScan"></a>
	<h3 class="method-title"><code><a href="#//api/name/stopScan">&ndash;&nbsp;stopScan</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>停止扫码</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (void)stopScan</code></div>

		    
			

			

			

			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">IVQRCodeHelper.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/detectQRCodeWithImage:" title="detectQRCodeWithImage:"></a>
	<h3 class="method-title"><code><a href="#//api/name/detectQRCodeWithImage:">&ndash;&nbsp;detectQRCodeWithImage:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>解析图片二维码</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (nullable NSString *)detectQRCodeWithImage:(UIImage *)<em>image</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>image</code></th>
						<td><p>包含二维码图片</p></td>
					</tr>
				
				</table>
			</div>
			

			
			<div class="method-subsection return">
				<h4 class="method-subtitle parameter-title">Return Value</h4>
				<p>二维码信息</p>
			</div>
			

			

			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">IVQRCodeHelper.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/createQRCodeWithString:QRSize:" title="createQRCodeWithString:QRSize:"></a>
	<h3 class="method-title"><code><a href="#//api/name/createQRCodeWithString:QRSize:">+&nbsp;createQRCodeWithString:QRSize:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>生成二维码</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>+ (nullable UIImage *)createQRCodeWithString:(NSString *)<em>QRString</em> QRSize:(CGSize)<em>size</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>QRString</code></th>
						<td><p>要生成二维码的字符串</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>size</code></th>
						<td><p>二维码尺寸</p></td>
					</tr>
				
				</table>
			</div>
			

			
			<div class="method-subsection return">
				<h4 class="method-subtitle parameter-title">Return Value</h4>
				<p>二维码图片, 失败时为nil</p>
			</div>
			

			

			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">IVQRCodeHelper.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/createQRCodeWithData:QRSize:" title="createQRCodeWithData:QRSize:"></a>
	<h3 class="method-title"><code><a href="#//api/name/createQRCodeWithData:QRSize:">+&nbsp;createQRCodeWithData:QRSize:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>生成二维码</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>+ (nullable UIImage *)createQRCodeWithData:(NSData *)<em>QRData</em> QRSize:(CGSize)<em>size</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>QRData</code></th>
						<td><p>要生成二维码的data</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>size</code></th>
						<td><p>二维码尺寸</p></td>
					</tr>
				
				</table>
			</div>
			

			
			<div class="method-subsection return">
				<h4 class="method-subtitle parameter-title">Return Value</h4>
				<p>二维码图片, 失败时为nil</p>
			</div>
			

			

			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">IVQRCodeHelper.h</code></p>
			</div>
			
			
		</div>
	</div>
</div>
						</div>
						
					</div>
					
					

                    
                    
          
				</main>

				<footer>
					<div class="footer-copyright">
						
						<p class="copyright">Copyright &copy; 2021 tencentcs. All rights reserved. Updated: 2021-07-22</p>
						
						
						<p class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.2.1 (build 1334)</a>.</p>
						
					</div>
				</footer>
			</div>
		</div>
	</article>

	<script src="../js/script.js"></script>
</body>
</html>